Fix regression whereby you were shown an error message after submitting GlobalGroupMe...
authorAndrew Garrett <werdna@users.mediawiki.org>
Sun, 29 Mar 2009 11:34:06 +0000 (11:34 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Sun, 29 Mar 2009 11:34:06 +0000 (11:34 +0000)
includes/specials/SpecialUserrights.php

index bee4320..7add7b4 100644 (file)
@@ -105,7 +105,7 @@ class UserrightsPage extends SpecialPage {
                                        
                                        global $wgOut;
                                        
-                                       $url = $this->getTitle( $this->mTarget )->getFullURL();
+                                       $url = $this->getSuccessURL();
                                        $wgOut->redirect( $url );
                                        return;
                                }
@@ -117,6 +117,10 @@ class UserrightsPage extends SpecialPage {
                        $this->editUserGroupsForm( $this->mTarget );
                }
        }
+       
+       function getSuccessURL() {
+               return $this->getTitle( $this->mTarget )->getFullURL();
+       }
 
        /**
         * Save user groups changes in the database.